<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文件上传对话框</title>
<%@ include file="/part2admin/common/adminInit.jsp"%>
<script type='text/javascript'
	src='<%=path%>/dwr/interface/UploadMonitor.js'></script>
<script type='text/javascript' src='<%=path%>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=path%>/dwr/util.js'></script>

<script type='text/javascript' src='view/common/js/resources/upload.js'> </script>

<logic:present name="uploadSuccess">
	<script>
var fileName = '<bean:write name='uploadFileName'/>';
var fileType = '<bean:write name='fileType'/>';
if(fileType == "pic")
	window.opener.document.all.pic.value=fileName;
else if(fileType = "file")
	window.opener.document.all.att.value=fileName;
window.close();

</script>
</logic:present>
<style type="text/css">
#progressBar {
	padding-top: 5px;
}

#progressBarBox {
	width: 350px;
	height: 20px;
	border: 1px inset;
	background: #eee;
}

#progressBarBoxContent {
	width: 0;
	height: 20px;
	border-right: 1px solid #444;
	background: #9ACB34;
}
</style>
</head>
<body>
<form action="uploadAction.do?method=upload" method="post"
	enctype="multipart/form-data" onsubmit="startProgress()">附件<input
	type="file" name="file1" id="file" onKeyDown="return false;"> <input
	type="submit" value="上传" id="uploadbutton">
<div id="progressBar" style="display: none">
<div id="theMeter">
<div id="progressBarText"></div>
<div id="progressBarBox">
<div id="progressBarBoxContent"></div>
</div>
</div>
</div>
</form>
</body>
</html>